package org.loon.game.sample.llk;

import org.loon.framework.javase.game.core.graphics.LComponent;
import org.loon.framework.javase.game.core.graphics.component.LButton;
import org.loon.framework.javase.game.core.graphics.opengl.GLColor;
import org.loon.framework.javase.game.core.graphics.opengl.GLEx;
import org.loon.framework.javase.game.core.graphics.opengl.LTexture;

public class bGrid extends LButton {

	int width=-1,height=-1;
	public boolean clicked = false;
	public String name;
	
	public bGrid(LTexture img, String text, int x, int y) {
		super(img, text, x, y);
	}
	
	public bGrid(LTexture img, String text, int x, int y,int width,int height){
		//super(text,x, y, width, width);
		super(img, text, width, height, x, y);
		//this.setImages(img);
		this.width = width;
		this.height = height;
		this.setBounds(x, y, width, height);
		
		this.name = "b"+x+y;
	}
	
	
	public void setClick(){
		clicked = !clicked;
	}

}
